package hd.cls6;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileTest3 {
    public static void main(String[] args) {
        try {
            //能创建文件，不能创建目录
            FileOutputStream fout = new FileOutputStream("f:/2.txt", true);
            fout.write("hello".getBytes());
            for (int i = 65; i <= 122; i++) {
                fout.write(i);
            }
            fout.close();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
